package com.pgytesting.threenewboard;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;


/**
 * @author frosty
 */
@SpringBootApplication
@MapperScan("com.pgytesting.threenewboard.dao")
public class ThreeNewBoardApplication extends SpringBootServletInitializer {


    /**
     * Spring Boot打war包初始化入口类
     *
     * @param application spring boot的入口application class
     * @return 入口类class
     */
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(ThreeNewBoardApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(ThreeNewBoardApplication.class, args);
    }

}
